[switch-in-project] Fixed bug in `swith-in-project-indicator-mode', where a non-list could be accessed as such