refs #7264 - check for java, unless installing for capsule

This commit moves the java check from a check to a hook, so that
we can more easily differentiate the behavior for a capsule vs
server install.  In addition, if the installer is being run for
the capsule, skip the java check, since the capsule does not require
it.
Updated to use module_enabled?('katello').  The result is that we'll only check for java, when katello is enabled (i.e. server install).