[8.x] WFLY-3929 WeldApplicationFactory does not override getWrapped()

PR for master https://github.com/wildfly/wildfly/pull/6776