Checks properly for existence of array element for quiz_log response_log.
Merge pull request #2300 from rtibbles/quiz_log_fix

Checks properly for existence of array element for quiz_log response_log
Merge pull request #2301 from learningequality/nalanda-rct2

Nalanda rct2 into nalanda-prerelease