fix an exception in the outline view

@umop, fix an exception in the outline view for Dart files with no content.
I agree, early returns are something to avoid. I have another PR to remove it -