Do not try to insert when 0 records are sent

This is to avoid an error while fetching users related information