Fix potential NPE

NPE introduced through 33cc92093d2ed64ee28cd3975a3605a732081bd2 when registering update manager without listener.