Fix map not executing block when result isn't being used.