Fixed crash when showing context menu in websearchbar.