Fix an NPE during startup when dump_configuration is enabled

I think the page cache is cycled on HA mode switch, but I don't know if we attempt to access during that time. Doing things this way covers all the bases, even though it might not be strictly necessary.