Small fix for empty attributes

This makes the ldap sync not crash for me.