Fixed TaskFactory::ContinueWhenAny with func result. Fixes #14839