NetCDF service: prevent NPE when parsing attributes