Fix broken logic for recording to HourOfActivity table.
Merge pull request #179 from code-dot-org/fix-hoc-activity

Fix broken logic for recording to HourOfActivity table.