Throw when attempting to convert empty filter to sql

The previous behavior of returning an empty string was causing downstream
problems because the sql being generated is actually a WHERE clause, and an
empty WHERE clause is invalid.
Merge pull request #6 from jwalgran/topic/fix-empty-query-handling

Throw when attempting to convert empty filter to sql