Fixes typo in promises implementation for legacy browsers
Merge pull request #5081 from timvandermeij/promises-typo

Fixes typo in promises implementation for legacy browsers