CDAP-984 fix long overflow bug that would cause stream events

to not get read.