Fix the fetching of LDAP users in the LocalAddressbook

The LocalAdressbook wasn't able to discover/fetch LDAP users. (Reported here https://github.com/owncloud/chat/issues/128 )

CC @frykillr @DeepDiver1975 


$result can be null if userManager->get() does not return a user. do a type check before.