Sanity check to prevent inserting object without any values.