If there are no attributes, use an empty array.
Merge pull request #22 from datacentred/fix_empty_attrs

Addresses #20
Merge branch 'master' of github.com:datacentred/datacentred-ldap into allow_non_ssl