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

Fix #1517 
`layout == null` has never happened during tests. Anyway I've added a check to be sure of this.