Fix an AttributeError in the github post-receive hook.

Sometimes, the payload for the post-receive hook doesn't have a ref name. I
believe this occurs when pushing things other than refs like tags or branch
heads. In this case, we don't want to try to call None.startswith().

Trivial fix.