Fixed "Dismiss" links on notices not working for some pages in admin.