Fix color index overflow by reuse existed color in the vector. Fix #14293

as title. fix http://trac.xbmc.org/ticket/14293