Prevent an IndexOutOfBoundsException if the SQL-String ends with a single line comment without a newline.