BZ-1025389 - Start and complete commands of a task in one JMS request produces NPE
(cherry picked from commit 2b5a326bafdf2c566700a488fe4b37afe22f257a)