fixed play/pause click on screen

If you click on black screen on player when playback not started yet, an error occurs.
following code fixed this bug