When setting a null handler on the MesssageConsumer, the register method should set registered flag to false otherwise registration won't effectively happen

Signed-off-by: Julien Viet <julien@julienviet.com>
Merge pull request #937 from vietj/master

When setting a null handler on the MesssageConsumer, the register method...