[Bug Fix]: Handled exception when removing an unselected button in the files tab of the side panel