TIM-499: Database error in peer_assess handler uses variable before assignment