Don't leave tree in screwed up state if git am fails to apply a patch