Fix crash if ldapuser is nil