the messageHandler() gets called with lots of NULL messages when using the continuation debug handler, and as a result you'd get a bunch of blank lines, this fixes this problem.