[WFLY-1498] Invalid resolver metadata with adapted module

https://issues.jboss.org/browse/WFLY-1498