Fix esx datatable for only 1 esx host

(cherry picked from commit f7e7e878d8b8fd34d5846032933e4c49e868c677)