Zero should not be falsey for end of a range query. Fixes #378