Fixed a case where an empty list would be stored even though it shouldn't be stored