As of MediaWiki 1.31, {{#setlogo:}} is unusable (doesn't do anything) and needs to be rewritten.
Possible reasons: 1) $wgLogo is used before setlogo changes it, 2) extension is unaware of the parser cache (doesn't save the new logo in ParserOutput).