[WFLY-456] Fix search for handler when running in domain mode