Fixed implementation of GET /posts/by-rectangle.
Fail early when errors are occuring.

Always check for an error and call done if there was one.