Added an additional error checking for product type.
Merge pull request #307 from rudigens/rgps

Added an additional error checking for product type.