Fix for native menus switch

Don't check global.brackets.platform until it has actually been set!