widgets: don't rtgui_widget_update_clip(win)

The clip of window is managed by topwin. Doing
rtgui_widget_update_clip(win) will mess it up. So add a sanity check on
it.

If windows are not widgets, things will get more clear.

Reported-by: xiao苦 in the forum