ticket.56763: Fix crash when dismissCurrentDialog() called twice.
Merge pull request #78 from KKBOX/master_gigi

ticket.56763: Fix crash when dismissCurrentDialog() called twice.