BZ-1070211 - NPE in REST client when querying for process variables history
(cherry picked from commit e644aca9844694cdbcf758c01b4e5481e8d74bfd)