Fixed check on Entity

Ref. https://github.com/gwdg/rOCCI-core/issues/19