Improve handling of invalid input in HashRing class

HashRing __init__ and get_hosts shouldn't be passed None,
but if they are, an appropriate error should be raised.

Change-Id: I139e7410c43bf4ac0f3357797ad767fde9455e36
Closes-bug: #1274762
Merge "Improve handling of invalid input in HashRing class"