Fixes #6550: add classes suffix _error in case of failed, denied or timeouted promise

(cherry picked from commit 5972114bd7fd039d308eb3870050265688f237e6)

Conflicts:
	lib/3.7/common.cf