[MAILPOET-1580]
[MAILPOET-1560]
This is hard to debug, but the id was NULL in the previous implementation and that sometimes returned an object instead of expected Now the id is always a number and that will hopefully fix the flakyness. [MAILPOET-1578]