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

Change-Id: Iae15714c3bbca6cdb7fc52191c47dd80c47c7b03