Fix crash due to render cache key comparison