fixes a NPE in the Player on onResume and onPause

Change-Id: I3ef4dc9f2a3998d479fc904a08ca907906f7c79b