Fixed raising an exception when a App doesn't define a custom menu