Display an error if no branches are found

So users don't see broken <select> boxes

Bug: 65852
Change-Id: I4732816590be9a47b3c99c73bb719a827144158d