KAA-256: Fixed bug. Added null check for userId field in endpoint profile object.
Merge pull request #47 from kaaproject/KAA-256

KAA-256: Fixed bug. Added null check for userId field in endpoint profile object.