MaxJax error while submitting answer

BLD-1199
Shouldn't the code below this also be inside `if (message == 'End')`?