dx9: Fix a crash on textures used as RT.

We don't always have a texture pointer.