Prevent exception if no window currently has focus