Adding method to get the dialog iconId from ShadowAlertController

And some cleanup.