Check for Existence of Cart Before Using

check for the existence of the cart during the is_available() check
before getting the order total (which otherwise will result in a PHP
notice from the admin, etc)
Merge pull request #5572 from justinstern/master

Check for Existence of Cart Before Using