Fix NPE by adding a onPause check

Bug: 12682478
Change-Id: Ida9c79287751089449569ec26dcf1c1f195afde9
1 file changed