Removed numRows usage from encryption app

numRows on Oracle always seem to return 0.

This fix removes numRows usage from the encryption and sharing app.

This fixes unit tests and potentially the encryption app itself
(migration status) when running on Oracle
Merge pull request #6498 from owncloud/stable6-oracleencryptiontestfix

[stable6] Trying to fix failing encryption tests on Oracle