Use the proper scope for headless param

(Scope(Java::Install[default-jre])) Could not look up qualified variable java::bool_headless; class java has not been evaluated at .../modules/java/manifests/install.pp:63