Fix infinite redirect loop on cart page

Fix for issue https://github.com/woothemes/woocommerce/issues/6319