ArrayIndexOutOfBoundsException in getResponseAnswerHtml #2581

Fixes #2581
If they are unrelated tests, create an issue an assign to him.