Fix crash on database check dialog
Merge pull request #559 from timrae/databaseCheckDialog

Fix crash on database check dialog