lib:background  check whether widget is realized to disable runtime warning at set_xx functions