Fix error in modal when no mappings affected

The previous fix: b33cd31 triggered an error if the changes you had made affected zero mappings, whether you were on a site-specific page or not.

With this change, the modal will only be displayed on pages for a site.