Fixed a bug in getBurstFrameNumber

- the function could return the number of a not received frame (2
consecutive frames in raw data do not have necessarily consecutive frame
numbers)