Bugfix: use supplied chain head block instead of looking for
non-stored-yet chain head block in the blockstore