utils/update_stream_timings: fix division by zero