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.