[WFLY-3348] Close the input stream from domain deployment content additions

Master equivalent is https://github.com/wildfly/wildfly-core/pull/72. Once a release of core with that in is integrated into wildly I'll submit a small tweak to the testcase in master to reenable to assertion that was previously removed.