The reason this is here is that the referrer code will not check referrers that are scheduled to be inserted, and so when we depend on the routes of an object scheduled to be inserted in the same flush as the current document we don't find the routes.

Should getReferrers check the scheduled inserts?