fixes bug where we forget to check if block is null before using it
fixes bug where we forget to check if block is null before using it

sit/dht,weidezhang/dht,sit/dht,sit/dht,sit/dht,weidezhang/dht,weidezhang/dht,sit/dht,weidezhang/dht,weidezhang/dht