Fix for "Fatal error: Invalid array length"

It might happen that the variable ```indentLevel``` has a negative value which will fail in the function ```indent```