Fixed crash due to closing parent while error dialog is open #DESURA-830