prevent SQL error when customer_id is not set