Prevent errors on loading if no portals are defined