The MemoryBackend does not support caching NULL, i.e. cache()->set('foo', NULL).
GenericCacheBackendUnitTestBase::testValueTypeIsKept() tests several edge cases, but unfortunately it does not test NULL.
This adds a test for NULL. It also removes a few other strange occurrences of isset($cache->data).