preventing error when typeElement is undefined

This should fix #503 - I had the same issue trying to access this wsdl: http://webservices.micros.com/ows/5.1/Availability.wsdl