Fix crash in widget pager - DO NOT MERGE

Fixes bug 14299491

Change-Id: I3c94cbd7f7923dc5a429c9929bc432a5dd29d04f
(cherry picked from commit af54c81e4e058840f6ce65c125e71643379de306)