Late answer but are you caching the footer in some way?
If so and you view a page in the admin site when the cache is refreshing the _pageRetriever will get back unpublished pages. See https://docs.kentico.com/13/custom-development/working-with-pages-in-the-api which states:
the correct version of pages is retrieved depending on whether the content is displayed on the live site or in the administration interface.
So this version is cached and shown in the live site.
Just a possibility as I ran into this scenario today.