NPE fix for widgets get.

Returned null on failure instead of empty widget.