COD: no need to hide in admin

Also fixes a fatal error when WC()->payment_gateways()->get_available_payment_gateways() is called in the admin
COD: check if cart is available before checking if it needs shipping
Merge pull request #5415 from tamarazuk/patch-2

COD: no need to hide in admin