fix fetchRow checks to also work with MDB2

MDB2 returns null when no further rows are available, PDO and doctrine return false. Various places that use `OC\Files\Cache\Cache $cache->get($file)` check for false with `===`. Some of the tests user assertFalse() which also fails. These HACKS will go away when moving to doctrine, but for now. We need to check for null and false. The underlying problem is that using PDO for oracle is not recommended and ownCloud has to fall back to MDB2.

The widespread (IMHO bad) usage of `while ($row = $result->fetchRow()) {` is not affected.

@karlitschek @DeepDiver1975 @icewind1991 @MTGap @bartv2