DATAJPA-477 - Avoid query creation in PagedExecution if count query returns 0.

We now skip the query creation if we detect that the preceding count query returned 0 or no results. Previously we always created a query in every case which was not necessary.

Original pull request: #113.