[CXF-5917] Restoring the original check against the EncryptedData element for greater flexibility as recommended by Colm