Add assert after this line of code that does this
```
assert(_entityId != INVALID_TID)
```