Allow mGerrit callers to specify initial gerrit instance

Also catch a potential null pointer

Change-Id: If21c96158fa699d6d19d9f2315e4a99710c0b897
Add Paranoid Android Gerrit source

Change-Id: I4af410fa1153fc57dca985ec4d6e1e2d8f428871