Allow unsetting the db (ORM::set_db(null)) to make the test work agen

the test was failing in tear down
https://github.com/borrel/idiorm/blob/master/test/CacheTest.php#L24