When cache returns a boolean instead of cacheElement, throws exception.

When cache returns a boolean instead of cacheElement, throws exception.
The render function needs to validate that the cacheElement is not boolean false.