Fix error modUserProfile: Attempt to set NOT NULL field internalKey

... to NULL" via duplicate user
Related to #11302