Prevent caching null objects