[WFLY-456][WFLY-2041] Fix tests when assertions are enabled

The problem was a null path manager failing the assertion in ExtensionRegistry