Prevent needless error message when creating OSX top menu.