Check to make sure the event target isn't the menu in the document click handler. fixes #355