Fix NPEs when modders stupidly register null texture names.