workaround for an exception w/ tab

Hitting tab in the editor currently throws an exception. Possibly an issue with the snippits code, or a specific snippit?

https://github.com/dart-lang/spark/issues/2442

@dinhviethoa