GroupsAndEntriesPage closes on error

If a database error occurs like wrong master password issued then the page showing the Keepass database master groups (or any other group or entry page) is closed and the application returns to the initial main page.