fix crash when texture list is empty


git-svn-id: http://svn.code.sf.net/p/sauerbraten/code@5041 07af1644-1164-4067-b897-63bf4dc9b748