fixes #1113 so if we can't get the HEAD on a git repo (i.e. there is no commit history at all, so we can't even type "git log" without errors) we just log an error on the server side and ignore the error in hawtio