Added corner case handling in screen transition iOS runtime.