Resolve NPE while accessing lists/arrays outside of their defined bounds.

Fixes jknack/handlebars.java/issues/197