Music: Music Force Close when the last song is end and repeat is closed.

getCursorForId(mPlayList[mPlayPos]) will cause ArrayIndexOutOfBoundsException
so need to check the index of mPlayList before use it.

Change-Id: I31e69c48a241310ec9418d147cc980bdcc81e31e
Author: Jun Wu <junx.wu@intel.com>
Signed-off-by: Jun Wu <junx.wu@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 57322
Fixed the Music app crash issue when the repeat button is disabled.

When the music application is set to REPEAT_NONE mode, the mNextMediaPlayer
didn't set to null. Therefore, the music would play next song, but the index
is invaild and causes the app crash.

Change-Id: I991ab50a05636ad3e14ea826cf9a43af7dacdb0a

Signed-off-by: Jun Tian <jun.j.tian@intel.com>
Signed-off-by: Zhu Yanglin <yanglinx.zhu@intel.com>
Merge "Music: Music Force Close when the last song is end and repeat is closed."
Merge "Fixed the Music app crash issue when the repeat button is disabled."