Fix Redmine/5748 - make defaults promises work in bundles using classes promise

a matter of evaluation order. If "ok" is evaluated before the method has been called (which it is), then it will not be set. But fail1 will be set. Second pass - value1 is now set, ok will be set.

The problem is that classes are never unset once they have been set, so relying only on fail (which will be set in the first pass) is not sufficient.

That's my interpretation of what's going on at least.