Better check if the page is in dashboard
Fix incorrect object to check
Merge pull request #1821 from hissy/helper-dashboard

Better check if the page is in dashboard