gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in more places
When the widget gets finalized it clears the widgetnode and gtk_css_widget_node_get_widget returns NULL. Guard against gtk_css_widget_node_get_widget() returning NULL like in other places.