Gets the model of given entity.
This will be nil for entities which cannot have models, such as point entities.