Fix overrun handling

Fixes a small bug in UBX buffer overrun handling.