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

Change-Id: I2944cfb8c663809e2af6467532d9d084419190c4