fix a StateError in file_controller.dart when changing selection
Merge pull request #541 from dart-lang/devoncarew_exception_fix

fix a StateError in file_controller.dart when changing selection