Fix error message generation for site notices.

- Prevent 'Cancel' link from generating duplicate error lightbox.