Added code to output an error on CreateSession when the user provides an
empty array of hosts.

Added code to the test suite to make sure the issue does not appear
again in the future.