improved the validation for WC_API_Customers::edit_customer() and WC_API_Customers::delete_customer()