You can reproduce this error by doing the following:
- Place a Fluid wagon in the world
- Hover over the wagon with the mouse and run the following command
- /c game.print(game.player.selected.fluids_count)
- to verify the wagon's fluids_count = 1, and then run
- /c filter = game.player.selected.get_fluid_filter(1)
Error: Entity "fluid-wagon", (fluid-wagon) does not have fluids.
I expect the function to return nil.
Similarly, you also produce the error by calling set_fluid_filter. I would expect this function to silently fail as it does in cases, such as crafting machines, where a filter can't be set.
----------------------
EDIT: I'll also mention that this error does not occur on Flamethrower turrets. These have a fluids_count = 2, the second of which is an internal buffer with no associated FluidBox prototype.

