PROV-899 Now get proper result sets for relationship-type restricted has facets

The SQL WHERE clause that restricts the result set to relationship
types should only be applied in the ‘yes’ case of has facets.
Nonexisting relationships can’t be restricted by type :-)