Making sure we have a valid window reference when setting the default tint color.