Corrections for the wc_create_new_customer() function

Fix the issue #4672