When the windows initial root view controller's is set dynamically, projects crash due to unwrapping a nil 'rootViewController'. If this occurs, return a default value until the next call when the rootViewController is non-nil.