preventing crash caused by invalid Array size during indent calculation

Ran into this while developing my scriptie-talkie library.

Impossible to reproduce in isolation however this change fixes this problem and doesn't affect anyone who doesn't encounter it.