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