BugzID: 5717. Fixed crash when sleeping the device while the app is running.