xbps_array_foreach_cb: replace an assertion with a real test, for non working repos.
xbps-query: ignore non working repos; misc fixes.