Fix a bug where the viewer wouldn't refresh when it was connected to
multiple inputs and the user would delete the currently selected input.