[BUGFIX] PersistenceQueryRewritingAspect now supports count(0)
If the aspect intercepted a count() method and the result (because
of lacking access rights) would be "none", the aspect returned an
EmptyQueryResult object which in turn could not be cast into an
integer by the client code.
This patch now correctly returns a 0 in that case.