Master findbugs fix npe warnings

The findbugs annotation @CheckForNull correctly causes findbugs reports for
references to the return value of that method.  If that method returns null, a null
pointer exception will be generated without these safeguards.

The safeguards generally throw a GitException with a message rather than 
throwing a null pointer exception