validateIndentation: fixing Cannot read property 'loc' of undefined error

Fixes #684