Fixed WooCommerce submenu in multisites

reported in
https://wordpress.org/support/topic/error-message-in-multi-site-from-223

@mikejolley