Fixed the wc_update_new_customer_past_orders() function, closes #6903

get_post_status() returns post status (string) or false (bool) on failure.