Bug fixing

The most recent crash dropped a core file!

Upon debugging it appears that something sent some bogus message over the network. When the network thread decoded the message it turned out to contain no valid sections. The code then tried to access the first section to determine the command that was sent and dereferenced a null pointer.

I fixed this specific issue, but thinking more about it I need to significantly improve NetworkThread's general robustness.

Subject: