explicit type checking of parameter that was raising an exception
===
Merge pull request #104 from dimagi/couch-exceptions

explicit type checking of parameter that was raising an exception