Check _inter_size in ::has_j2k() (fixes #2086).