Do not deploy when GIT_NAME is not defined.

This should stop deployment when Travis is run on forks.
I admit I'm lost. Could you please check the snippet I put up in the pull request. If these tests don't change behavior, then what does?