Fixed bug on SSGEntity.IsValid property.