Open new window for reveal/serach when none exist #1

This also handles a problem where reveal or search would fail if the
frontmost window is a note window.