Fix map function called twice by ListenableFutureAdapter