Added logic to grab accountId, numVips and tagsBitmask as a last resort whenever previous records cannot be found.

Added tests for cases when hosts cannot be connected to.