fix "JPX Out of Packets" Error (issues 4358, 4659, 4814)
Add test case for JPX "Out of packets" error
Merge pull request #5426 from fkaelberer/fixJpxOutOfPackets

Fix JPX "Out of Packets" Error (issues 4358, 4659, 4814)