intel: added null ptr check

This fixes a segfault seen with piglit's fdo20701 test.
1 file changed