HPCC-11278 Fix core when calling WUListQueriesUsingFile with LDAP

Signed-off-by: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>