Fix fatal error when woocommerce not installed