[skip ci] queries on raster do return a geometry avoid dereferencing a null attribute