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.
Merge pull request #235 from alphagov/fix_error_displaying_modal_on_non_site_page_mk2

Fix error in modal when no mappings affected