Fix a bug where an array containing nulls is handed over to the ListPM.