protect against onWidget('ready') being called twice