[MAILPOET-1757]
[MAILPOET-1689]
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]