[WFLY-490] Properly handler case in the Provider enum

Minor fix.