TMapBase::IsValidId

Checks whether an element id is valid.