[#2252] ArrayIndexOutOfBoundsException, when rendering plain SQL that is
terminated by a comment - Added test case