fix an issue with navigation in the files view

Fixes https://github.com/dart-lang/chromedeveditor/issues/2709. @umop, @ussuri