Do not call nc_close on null object in NcFile destructor

This will remove the error message from destruction of declared NcFile objects: https://bugtracking.unidata.ucar.edu/browse/NCCPP-6