8066683: nashorn test failures after modular image changes