JBPM-4177-ORA-01400: cannot insert NULL into ('JBPM'.'TASK'.'TASKID')

(cherry picked from commit f86aee4e38c5e9fdcaa9a41b37fad2c8a13756b5)