qtmux: handle 0 size packets without dividing by 0