Update to SmartFactory to check for ProfileId when missing
Merge pull request #17 from thysmichels/master

Missing ProfileId