fixed BEAM-1715 -- NetCDF reader throws NPE
added test