Return empty object instead of null when repo has no HEAD