Handle the case when listener is not set