Handle case where a colon is the last token in a file

It's syntactically incorrect but puppet-lint shouldn't show a stack trace.