Fix a logging bug. (4.2.0)

Now that the rate limit is checked before queries are made, a situation
arose where a request was logged with no result.