MDL-43405 auth_ldap: Fixed issue with undefined variable: ldap_cookie