Fix a case where a null configuration element causes a NullReferenceException