XX-10969: LDAP import returns exception

-make sure that when checking scheduled running, the task is valid (not canceled)