Handle zero-length sublist correctly in Python -> SQL array conversion.