what about wrapping this in an if. check if the katello engine is present before running this.