Fix an NPE when saving the portcullis config