Config File refnums are not actual file refnum to the config file but a refnum to config data in memory. You can't use it for file operation. "NAN/P/R" will always return TRUE.
To test if a config file refnum is valid, use "Not a Config File Refnum.vi".