RE: d3d8: Fix the null condition in ApplyStateBlock