fix fetchRow checks to also work with MDB2
Merge pull request #3652 from owncloud/fix_fetchrow_usage_for_mdb2

fix fetchRow checks to also work with MDB2