LDAP: better check for emptiness, fixes #3815

preg_split returns an array with one (empty) element, if an empty string (or null) is passed.

Reviewers please @FlorinPeter @DeepDiver1975 @bartv2 or others