Prevent error MSB6001: Invalid command line switch for "git.exe". Value cannot be null.

Prevent exception and thus incorrect MSbuild error when LocalPath is null (the default)