Fixed the case where the task was moved to the front

Previously in the case that the task was moved to the front,
the wrong result would be returned.

Test: go/wm-smoke
Test: Use PendingIntent.sendAndReturnResult
Change-Id: Ifa2966bacc4235f45b74220336f2baae02d0ee9a
1 file changed