Ensure two if statements only get executed if pEntry->pTexture isn't null.

Before it would access pEntry->pTexture regardless.
Remove an identical check in the same if-statement.

TLutFmt is already checked in the 8-th conditional.
fix apparent vertex index calculation bug found by Lioncash