Fix for isInvalidBone so number values don't get passed to IsValid()