NPE fix for widgets get.

Returned null on failure instead of empty widget.
NPE fix for widgets get.

Returned null on failure instead of empty widget.
NPE fix for widgets get.

Returned null on failure instead of empty widget.