Fix find_file dialog exception when dialog is empty.