Catch security exception when trying to remove livereload on parent

The parent frame may not share the same origin.