Instantaneous fuel mileage would be speed divided by instantaneous fuel consumption, if the latter is zero you get a mathematical error and it displays something to indicate that, whether it is an infinity sign or question marks. However, to determine average fuel consumption, you wouldn't average or integrate the result of this instantaneous calculation, you would simply add up all of the fuel consumption and divide the total distance travelled thus far and divide it by your total fuel used. The time at zero would reduce the denominator and increase the result, but no math error would result unless the total fuel consumption was zero, like coasting down a mountain.
MPG is a deceptive figure in some ways, the L/100kM that the rest of the world uses is more direct.