Prevent trimming recent tasks belonging in different stacks.
am: 29dbc3cc47

Change-Id: I5f87f2c865a0c5f5dad06bda895f5dd4a780d829