Fixed Exception type error when raster cannot be read