JBPM-4336 - Protect jbpm executor from attempting to store more data than it should