Catch RuntimeError exception when LDAP returns no results.