Open Stats links by using the in-app browser from notifications

Fix #1517 
Should check whether layout is null here.