Fix issue when searching for 1.2 SOAP operations

This code was raising exceptions about not having a variable declared in case of 1.2 operations.

I've wanted to add at least an integration test for this fix, but didn't find any WSDL to break the actual code. And unfortunately, the WSDL used to discover the issue was a proprietary service from a current client, so I'm not allowed to share :cry: