Fixed InvalidCacheLoadException error

- Never return null from the cache loaders
- Added a test to demonstrate the behavior