Fix promise::set_exception

Wrong set_exception function version was chosen if exception_ptr passed
as a parameter.