don't log empty error message when checking for git remote