Fix widget resize crash

Fixed a bug on Trebuchet or pre Google Search 3.4 launcher which lead
the launcher crash when a widget is being resized using the context
menu.