Fixed findSlotIndex and findBoneIndex return 0 when not found instead of -1.