Remove the shipping class get_first() requirement - if the shipping class get_first() class method is not available, fallback to selecting the cheapest shipping rate.