Fixing index bounds exception when TaskViews are added while dismissing.
am: ffaf07fed0

Change-Id: Iaf42d020a561626040ca1c6a3bd75240c6146f40