Return an invalid protocol when the query has no result.

Fixed #67