Wrap show dialog fragment in isSafeToCommitTransactions check
am: 30328dbe38

Change-Id: Iea942c23d529301213841c9ec305c1b848ae196c