Update swagger.js

AJAX requests were not sent if there was no paramType available due to a JavaScript error.