destroy modalBar after last occurence is replaced
Merge pull request #3815 from adobe/randy/issue-3748

Destroy modalBar after last occurence is replaced