I can reproduce the error mentioned on the user list using the example posted (see URL).
the problem seems to be the fresh Project instance since the error goes away if the existing instance is reused. We must implicitly assume some initialization-step has been performed prior to invoking createTask.
fixed with svn revision 1240669