The issue was caused by my code setting a fluidbox to 0 amount of some fluid.
In 0.16:
Mod: "Hey could you set this tank to contain x water? By the way, x is 0."
Factorio: "Hmm, I've received a request to set a tank to contain 0 water. Is 0 a positive amount? Lemme check, no. So I'll set the fluidbox to empty, makes sense, no big deal."
In 0.17:
Mod: "Hey could you set this tank to contain X water? By the way, X is 0."
Factorio: "Hmm, I've received a request to set a tank to contain 0 water. Is 0 a positive amount? Lemme check, no. Wait, no? You want me to set 0 water inside that tank? What could that possibly mean? I'll crash now. Have fun waiting for the bugfix, innocent user."