In parser, do not assert on unknown promise types when parsing constraints.

Close #3194