TIM-499: Database error in peer_assess handler uses variable before assignment
Merge pull request #310 from edx/will/TIM-499

TIM-499: undeclared variable when logging an error