Fixed Query.exists() method for the case, when query doesn't have any filters applied.