Fixed fatal error when product has variant prices but no variants (#811)