Check for widget not null when handling kRebind