fix an exception in the outline view

@umop, fix an exception in the outline view for Dart files with no content.