[e4] Workaround for MenuManager bug

* Workaround for e4 bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=428297