Fix possible NPE in the code that restores widgets' state.

Bug #2189714
Reviewed by: ryanpc

Change-Id: I0d74deb6dc8e90e3b0eafd6b3c16b0c557c72873
1 file changed