fix an exception in the outline view

@umop, fix an exception in the outline view for Dart files with no content.
Huh. Interesting point. I'll try to keep an eye out for that from now on.