utils: check watcher is nil

Change-Id: Ie6b8e98162b33aea412396bb77e60a2ac20ab219