XWIKI-9970: Look at 'displayMainMenu' in edit mode

* The 'displayMainMenu' is now checked before loading the 'menuview.vm' in edit
mode
Merge pull request #259 from woshilapin/XWIKI-9970

XWIKI-9970: Inconsistent hiding of the main menu top bar