Maybe fixes #14

Don't know exactly whats wrong, but I think that the entity was invalid
so I added this condition to prevent sending invalid ents.