As part of commit 09a1b1be I have broken it as leaving the upstream variable undefined after the code changes.
upstream