CLOUDSTACK-2629: ListRouters with networkid throws exception.(cherry picked from commit 19321d4eeb7accd2bd67af1c8b2c2a5988a23ac0)
fix issue: listHosts with hahost throws exception
(cherry picked from commit a206f423a3851a4d090f58b05e2936dd68c528d0)