Handle case that get_commits returns empty