bug #3334: fix bug searching for templates in vcenter

(cherry picked from commit 55ec34a6243bf11f44a71d7f40b6e8bdaba9a297)