Guard against null MainMenu item