AVRCP: Fix unexpected index out of bounds exception

On function checkIndexOutofBounds(),
if endItem value equals to the MediaItem list,
then there will be 'IndexOutOfBoundsException'.
As sub list end value is endItem + 1,
endItem shall be smaller value than list size.

Bug: 64137660
Test: Code compiles
Change-Id: I6d2dc705451cf1f515c8fbfd4ba24ac49dc4271d
(cherry picked from commit 3850616551e6fb0a7ab0546ef68e0f74fa3536be)
1 file changed