fix a StateError in file_controller.dart when changing selection

TBR - this showed up in the analytics console