for some reason a 0 pointer was passed for internal created grids while
the correct raster was directly available. gridblocks of internal raster
could get a wrong id then