Fix possible crash when checking for 2-sided wall

Last instance where I forgot to change -1 to NO_INDEX after implementing
commit 6883bd33a6e02189c43cdcb3f37a6d19666f57df.