HIPPOTHEME-35: fix typo (lenght -> length) and optimized for-loop
Merge branch 'master' of github.com:onehippo/hippo-theme