Fixing null pointer exception associated with null list properties.