Fix exception caused when default value is 0.

Cherry picked from:

https://github.com/digium/swagger-py/commit/0a87b3b3892db053c23712fb3ac5e3c13b41045b