Fix MDL-43405

Notice: Undefined variable: ldap_cookie in /var/www/moodle/auth/ldap/auth.php on line 1539