ignore the pointer to the menu window when it's NULL
Merge branch 'fix-ui-menu-window-crash' of https://github.com/BevapDin/Cataclysm-DDA into BevapDin-fix-ui-menu-window-crash