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