This is an optimization to avoid doing redundant things when there are no registered observers. Differential Revision: https://phabricator.services.mozilla.com/D138853