#2430 get_called_class with product type fallback for 5.2