Fix bug #35451 - Selecting Library few times after selecting Repository/Search/Favorites gives an error