XWIKI-9847: Distribution Wizard first step does not see empty databases anymore
* Fix the query that counts the documents that are not xclasses so that it works on Oracle. Thanks to Sorin and Denis for catching this.