Fixed bug in LinkedList#remove that could cause first to point to a dead node

Fixed what appeared to be a bug in the linked list, that could cause first to point to a removed object. This error is reproducible when removing objects from the input handler


![](http://i.imgur.com/exA7355.png)