Update JBoss cartridges control script

The JBoss EAP and AS cartridges were attempting to get the deployment
scanner configuration even if the mgmt interface was not up, this change
makes it so that it only attempts to get the scanner configuration (and
subsequently verify deployments) only if the mgmt interface is up.