[FIX] ACT-1863: NPE on HistoricVariableInstanceQuery