Check required parameters for empty values.

Fixes #138, thanks robhudson!
Adding the search_exists API