Fix an issue in arc patch with git-svn
Fix an issue in arc patch with git-svn

Summary:
We recently moved our HEAD and it caused some issues on `arc patch` with git-svn repos. The base revision is incorrect and patch will fail. Add the check in such case to make it work.
The check was there before but removed in change b202158. The reason wasn't mentioned there though.

Test Plan: Tried it on svn.

Reviewers: lifeihuang, JoelB, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8717

hach-que/arcanist,phacility/arcanist,Khan/arcanist,aik099/arcanist,aik099/arcanist,coursera/arcanist,phacility/arcanist,alexmv/arcanist,sneakpeeq/arcanist,uber/arcanist,codelabs-ch/arcanist,phacility/arcanist,wikimedia/phabricator-arcanist,calblueprint/arcanist,wxstars/arcanist,alexmv/arcanist,KieranHayes/arcanist,dguo-coursera/arcanist,eSpark/arcanist,uber/arcanist,folsom-labs/arcanist,fivestars/arcanist,folsom-labs/arcanist,chundongwang/arcanist,wharris/arcanist,chundongwang/arcanist,sneakpeeq/arcanist,hach-que/arcanist,KieranHayes/arcanist,sneakpeeq/arcanist,codelabs-ch/arcanist,folsom-labs/arcanist,fivestars/arcanist,r4nt/arcanist,wharris/arcanist,memsql/arcanist,hach-que/arcanist,zhihu/arcanist,phacility/arcanist,fivestars/arcanist,eSpark/arcanist,Khan/arcanist,calblueprint/arcanist,coursera/arcanist,haskell-infra/arcanist,wharris/arcanist,PageUpPeopleOrg/arcanist-patches,r4nt/arcanist,Symplicity/arcanist,Khan/arcanist,aik099/arcanist,KieranHayes/arcanist,memsql/arcanist,zhihu/arcanist,chundongwang/arcanist,phacility/arcanist,haskell-infra/arcanist,wikimedia/phabricator-arcanist,folsom-labs/arcanist,jra3/arcanist,haskell-infra/arcanist,wharris/arcanist,kevinseelbach/arcanist,codelabs-ch/arcanist,codelabs-ch/arcanist,eSpark/arcanist,alexmv/arcanist,jra3/arcanist,chundongwang/arcanist,uber/arcanist,sneakpeeq/arcanist,zhihu/arcanist,PageUpPeopleOrg/arcanist-patches,aik099/arcanist,kevinseelbach/arcanist,kevinseelbach/arcanist,memsql/arcanist,eSpark/arcanist,r4nt/arcanist,PageUpPeopleOrg/arcanist-patches,dguo-coursera/arcanist,jra3/arcanist,dguo-coursera/arcanist,calblueprint/arcanist,fivestars/arcanist,kevinseelbach/arcanist,Khan/arcanist,calblueprint/arcanist,dguo-coursera/arcanist,wxstars/arcanist,uber/arcanist,zhihu/arcanist,wikimedia/phabricator-arcanist,coursera/arcanist,alexmv/arcanist,codelabs-ch/arcanist,PageUpPeopleOrg/arcanist-patches,memsql/arcanist,wxstars/arcanist,hach-que/arcanist,Symplicity/arcanist,KieranHayes/arcanist,Symplicity/arcanist,r4nt/arcanist,wxstars/arcanist,Symplicity/arcanist,coursera/arcanist,wikimedia/phabricator-arcanist,haskell-infra/arcanist,jra3/arcanist