Fixing regressions with appclients introduced in https://github.com/wildfly/wildfly/commit/474a7484a66c0283b6023ab1f6b93fdf0398e2a4