Added a nice error message so log_hours would not break.