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>