ArrayIndexOutOfBoundsException in getResponseAnswerHtml #2581

Fixes #2581
If these changes were done by godmode and they are not intended, revert them. Otherwise we cannot be sure if the behavior changed without us realizing it.