Some IndexOutOfBoundsException crash protection
 * should fix what caused this: http://openeye.openmods.info/crashes/4bedec3e149d42b521acd12f8bcbef4d
Some more tooltip placement mini-optimizations