Fixed a potential crash in cEntity bindings.