Fix LinkedList_Remove

The previous version was setting to NULL both tail and head when removing the head or tail item. That was corrupting the list.