Merge \"Check if task was top of stack before it\'s removed\" into nyc-dev
am: 94b4029f03

Change-Id: I58b62cd4b61952e82b2e2e6951b0f3a40511a340