This fixes the (never intendedly occurring) case that no comma is found in the SQL value list, and aligns the termination code with the comment next to it. Found by Coverity Scan, CID 25653. Change-Id: I98062748458a50603cd63a9017acd94eef0753f9