Fix NPE when portal disabled