Attempt to fix crash in WidgetTooltip::render()

For #1024

@igorko, please test.