Make addTask[Remote]Future() work for functions returning void.