main/texobj: Check that texture id > 0 before looking it up in hash-table