Properly track fragments from pop operations.

Bug 33849992

When popping and executing another transaction, the pop
transaction weren't properly tracking the fragments that were
added and removed.

This CL adds tracking the fragments during the pop execution.
It also fixes a small issue in when fragment state was executed
during pop.

Test: gradlew connectedCheck in fragments/

Change-Id: Id9f99eb44e54bf5202a170c8b1d01ba045383278
3 files changed