Fixed a bug that caused freeLinkedList to try and run the destructor function on the value stored in the list's head, which is always NULL.