Fix for #8421. Makes sure resolveWith can be called with only one parameter.