Fixed null issues

Fixed crashes that would occur when only one menu was going to be shown.