Fix crash with null block materials