fixes undefined submits see https://github.com/wordnik/swagger-js/issues/81