ACT-863: fixed NPE when getting JPA-entity out of HistoricVariableUpdate