BZ-1070097 - History commands sent via JMS require deploymentId to be set
(cherry picked from commit f5f8e84f70605a3b837d7c7e24d895f0ade41c8e)