Fixed various problems with getNextNode and removeNode in ECS and
Server. (mostly Null Reference Exceptions)