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

The fact that this sort of reasoning is needed in order to make sense of why something doesn't work when written the obvious way (and I don't believe anyone anticipates such problems before being baffled that what they first wrote didn't work) is a defect in the language.  I shall continue to call it a bug.