Fix SOAP extension type encoding

Summary: Fix a stack overflow issue when an xs:extension type in the SOAP
request is present in the SoapClient class map
Closes https://github.com/facebook/hhvm/pull/3893

Reviewed By: @paulbiss

Differential Revision: D1589586