Fix issue if mail is empty or not set

Q2A will create user account and display DB error if mail in LDAP value is NULL or not set..