Fix bug causing collections with non-cached views not being rendered when caching is enabled.