[WFLY-2783] Fixed erroneous embedded container configuration validation

Fixed erroneous embedded container configuration validation with a reproducing test case.