prevented trying to find a domain with a undef code; though it was handled correctly it generated a unneeded log message