OGLPlayer: check before dereference

Change-Id: I4bbaf97fe8c5def441ca106c26ad312281ed352f
OGLPlayer: handle json parsing error

Change-Id: I86aea12318d4e21ccadd97ad2820e31bd4580c99