Replacing None type by null list - purple.c