Fix restoring the original texture name when the DDS check fails

Should really fix bug 611 this time