unless i'm mistaken - it looks like the bug was introduced two months ago in a totally unrelated commit, and this is not two year old code. https://github.com/dimagi/Vellum/commit/5f682e6468ed55dd20a8f1af748a432d667bdde9#L3L2976

given the history of the file and the debug-nature of the code around that I'm guessing this was just a mistake and that this is the correct short-term fix.