Added a check for popups
Merge pull request #528 from psav/fix_bug_in_db_backup

Added a check for popups