Fix #458. Correct sequence number calculation during continuous query interpolation.