Fix error on close when the popup has not been displayed
Merge pull request #30 from mbreton/master

Fix error on close when the popup has not been displayed