Check if block is null before grabbing blockMaterial.