bug #3334: skip non defined objects when searching for vcenter templates

Some objects returned by childEntity can be already deletend when they are accessed.
This patch skips these objects.

(cherry picked from commit e2886255464e666c6a62d91cc1d016da6ab1a643)