Fixed dlgMessageBox when icon is not found.
Code cleanup.