Fix handling of patterns with single-level selectors in Pattern.is_connected().