An exception when parsing the query string in messageHandler was ignored, causing another error when the local 'qs' variable was assumed to be defined and non-null.