Don't send undefined parameters

This

https://github.com/wordnik/swagger-ui/issues/180

is still happening. This change fixes it.