Make custom slider widgets invisible if "" is returned

It would be great if the custom apple script slider widget was hidden when an empty string is returned, just like the other custom apple script widgets. Thanks!