don't check platform until it has been set
Merge pull request #4859 from adobe/randy/native-menus-switch-fix

Fix for native menus switch