Handle null list in orderedHash.addList() function

Reviewer: Dan. V