PROV-507 Fix type restriction code in cases where no type is specified