JBPM-4348 - Null pointer exception when retrieving empty task content via REST