avcodec/exr: Check remaining bits in last get code loop