Fix crash in block cache aging

Bug introduced in e2a11f2d90323695f99972690592a43237ee26a8
Merge pull request #22 from lachs0r/master

Fix crash in block cache aging