JPTest: Bug fix for crash

Was trying to access Packet.GetPayload().at(i) where i was outside the
packet bounds because we had received additional bytes and I was going
through the entire staging queue instead of limiting my loop to the
packet length