fix(utils): aggregate promise rejections whose reason is not an Error instead of throwing a TypeError