Fix bug#4266: error_reporting: cannot call methods on widget(tooltip) prior to initialization

Signed-off-by: Atul Pratap Singh <atulpratapsingh05@gmail.com>