Add safety checks on all hostList traversals