Avoiding phase-retrieval algorithm stagnation using the zeros of the Fourier magnitude