[WFLY-1552] Add the LogContext to the LogContextSelector only if the figuration was successful

Moves where the ```LogContext``` was added to the ```LogContextSelector``` so that if a failure occurs during configuration the context is not added.