Do not load branches twice; Fix backend mocks for branch queries that do not exist.