Do not generate empty insert statements, fixes #182