Fix NPE when combining pop with add transaction.

Bug 35832085

When pop transactions and an add transaction are acting
in the same frame, optimized tranactions can work properly,
but unoptimized transactions have no guarantees. This fixes
a crash with unoptimized transactions so they will at least
not break.

Test: ran fragment tests
Change-Id: I789fdf808640806725e84280a5187f252916c453
2 files changed