Cannot read property 'dialogCmd' of undefined

Fixed an error in modalDialogContent.messageHandler when parsing the query string threw an exception and was supposed to be ignored.