BuildMojo throws an error if gitCommitId is used but no git repo is available

If running "mvn docker:build" on a new project with un-initialized Git repo it may fail on unavailable "${gitShortCommitId}" variable. This error doesn't indicate immediately that the problem in un-initialized repo (I made this error at least twice) so this PR makes it an explicit error.