Error handling when dataType is undefined

When the API definition fails to define a dataType, it results in
toLowerCase() being called on undefined, which raises a no such method
exception. This would cause swagger-ui to hang in trying to load the
resource.