Nine: Fixes segfault in SetTexture when unsetting the texture

Signed-off-by: Axel Davy <axel.davy@ens.fr>
nine: call DBG() at more external entry points

Signed-off-by: Stanislaw Halik <sthalik@misaki.pl>
Reviewed-by: David Heidelberg <david@ixit.cz>