Improve error detection in geo_filter parsing

Relates to #5370