Avoid error messages.
Merge pull request #6 from shushu/5

Avoid error messages if entity is ULL.