Fix crash in block cache aging

Bug introduced in e2a11f2d90323695f99972690592a43237ee26a8