Fix issue where a product with no shipping category would crash checkout

Fixes #2804