[GEOT-4674]: bugfix for netcdf support

This small patch ensures that all types of netcdf variables continue to be supported. This regression was introduced in a patch created by myself, which was merged with the master branch, but only released in 11-beta.