Fix undef var issue when removing a json config key