Fixed bug where removing the head of a linked list threw exception when the head was null.