Added correct checks to "fast path" read methods in ImageReader to avoid module readers being able to see preview resources.
--------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - Fix read of modules via fast path API Changes: https://git.openjdk.org/valhalla/pull/2354/files Webrev: https://webrevs.openjdk.org/?repo=valhalla&pr=2354&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8382810 Stats: 57 lines in 2 files changed: 33 ins; 1 del; 23 mod Patch: https://git.openjdk.org/valhalla/pull/2354.diff Fetch: git fetch https://git.openjdk.org/valhalla.git pull/2354/head:pull/2354 PR: https://git.openjdk.org/valhalla/pull/2354
