DAQ-654 fix NaN error in jit

[jit issue 139](https://github.com/philogb/jit/issues/139)
[pull request](https://github.com/philogb/jit/issues/140)