[NetKVM] BZ#904028 - Fixing casting error with event indices calculation.