Fix an error when try to find rules for one domain
[#OPINST-29: Add jndi support]