Fix bug in push when the remoteHead is null.
Merge pull request #1046 from dart-lang/fix_in_push

Fix bug in push when the remoteHead is null.