Nine: Fixes segfault in SetTexture when unsetting the texture

Signed-off-by: Axel Davy <axel.davy@ens.fr>