[PATCH 10/10] d3d10/tests: Use IsValid() instead of null checks.