Make code more robust

This is motivated by a crash that indicates that an empty string might result from the `all_varations` function.
Output frame of find window’s field editor (debug)