Fixed empty packet parsing bug

Packet iterator was not advanced for empty packets.

Here is a fictively-generated image for testing (was generated by simply replacing the last quality layer's packets in empty ones):
https://www.dropbox.com/s/wdem5s87pp3zowf/cabs_small_bw_with_plt_reconstructed_9layers.j2k?dl=0