raster calculator: exit on error (fix #5075)