Fix for Dialogs crash when app style is set via ThemeManager #1358

-----
MOD EDIT:
\* Adding auto-issue-closing statements. *

Fixes #1385 
Fixes #1358 

MOD EDIT by @Amrykid

-----