Trap filter syntax errors

Now a syntax error on a filter just causes the filter to return the
error message as it’s single result.

Fixes #189