fix 500 error when no commits present