LDAP Patch to downcase emails doesn't account for missing emails

Created by: mreynolds

https://github.com/netdata/gitlabhq/issues/1

Downcase is called on a field missing an email, which causes an error against OS X Server. We'll add the emails, but a null check is probably inorder.