fix: head block

_storage_has_block now checks for a block in storage
using the storageid instead of the block id.