ArrayIndexOutOfBoundsException in getResponseAnswerHtml #2581

Fixes #2581
If possible, log other information such as which course and which session etc. Any information we need to locate the offending responses uniquely.