Avoid resetting the application icon on every validate

This is necessary to avoid overwriting the contact icon of chat windows
Open chat windows minimized when they should not get the focus