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.
Merge pull request #3288 from detiber/dohJBaws

Merged by openshift-bot
Fix for bug 982855
Merge pull request #3296 from abhgupta/bug_982855

Merged by openshift-bot