Don't crash when iterating cached features