defensive null check - exeperienced exception in cases in which onPause is called too early (ex. in my case a visualization of disk space by android

defensive null check - exeperienced exception in cases in which onPause is called too early (ex. in my case a visualization of disk space by android