message: Remote can also contain an invalid referce
diff: @@ -151,9 +151,13 @@ public:
  QModelIndex firstRemote() {
  // Return first remote if available, otherwise an invalid modelIndex
  for (auto &ref : mRefs) {
  - if (ref.name == tr("Remotes") && ref.refs.count() > 0)
  + if (ref.name == tr("Remotes") && ref.refs.count() > 0) {
  + if (mKinds & ReferenceView::InvalidRef && ref.refs.count() > 1)
  + return createIndex(0 + 1, 0, ReferenceType::Remotes);
  + else
  return createIndex(0, 0, ReferenceType::Remotes);
  }
  + }
  return QModelIndex();
  }
  