check fi nodata value is defined before trying to compare it against value