Do not crash if trying to create a collection of null values