Fixed problem with swiftmailer when there are no options defined
Fixed user registration - profile field ldap detection