Don't crash when seleting remote branches