Prevents errors on mini cart when debug mode is activated in WC 2.3