Removed lingering code left after removing full screen view option from global menu bar as it was giving a null exception.