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 #6512 from owncloud/master-failingoracletests

Removed numRows usage from encryption app