fixed application crash on screen timeout

fix for issue https://github.com/xplodwild/android_packages_apps_Focal/issues/34