Fix a bug related to remapped_ref_idx

This CL fixed a bug related to remapped_ref_idx in tpl, and
got back some quality and encoder speed. Borg results:
         avg_psnr:  ovr_psnr:  ssim:  speedup:
speed 1:
lowres2:  -0.093     -0.099   -0.367   1.132
speed 2:
lowres2:  -0.127     -0.122   -0.256   0.663
midres2:  -0.033     -0.045   -0.195   0.885
hdres2:   -0.105     -0.068   -0.208   0.268

BUG=aomedia:3132
STATS_CHANGED

Change-Id: I28109fa5564f49a24ee7510609ef7a4dd097081b
diff --git a/av1/encoder/tpl_model.c b/av1/encoder/tpl_model.c
index 19f04f3..e33ab31 100644
--- a/av1/encoder/tpl_model.c
+++ b/av1/encoder/tpl_model.c
@@ -1469,7 +1469,7 @@
 
     for (int i = LAST_FRAME; i <= ALTREF_FRAME; ++i)
       tpl_frame->ref_map_index[i - LAST_FRAME] =
-          ref_picture_map[cm->remapped_ref_idx[i - LAST_FRAME]];
+          ref_picture_map[remapped_ref_idx[i - LAST_FRAME]];
 
     tpl_frame->ref_map_index[ALTREF_FRAME - LAST_FRAME] = -1;
     tpl_frame->ref_map_index[LAST3_FRAME - LAST_FRAME] = -1;