Fixed bug in hostavailabilitytest

Fixed bug in hostavailabilitytest where some servers were marked as invalid
incorrectly.

Change-Id: Ia935b26e8f3dbf04b728ca37099d035a9fced13f