Backport fix from 2.9 for allowing context menus in hierarchies containing wxHtmlWindow


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@74553 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775