Fix capabilities check of remotes

Description

Currently, BuildStream did check but did not handle whether a remote was valid or not before using it.

This fixes how we handle it and adds tests to ensure the behavior stays.

Fix #1178 (closed)

Merge request reports

Loading