Bug 916651 - move setMessageHandler to init