fixed bug where an undefined variable could be dereferenced

which could cause the server to choke.
Merge pull request #1232 from thgaskell/master

Undefined post data causing server to crash