Fix undefined size jp2 box handling