Bug 945912 - Fix palette length reporting bug. r=jmuizelaar, a=lsblakk