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