Improve isFindPanelVisible to be more future-proof.