Like you suggested in the issue comments, just switching on wifi slurps a few kb, enough to do this test so I never saw this block of code executed.