Prevented insert_statement from inserting when no rows.