Prevents errors on mini cart when debug mode is activated in WC 2.3
Merge pull request #90 from claudiosmweb/fix-mini-cart-wc23

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