put back null gui hook for osx

`--gui osx` doesn't make sense on its own,
but it's called by `--matplotlib osx`,
which does.
Merge pull request #6555 from minrk/put-back-osx

put back null gui hook for osx