chore(HistVarInstQuery/NullCheck): Provide a null check

- if "null" will be passed as parameter into
  HistoricVariableInstanceQuery#taskIdIn or
  HistoricVariableInstanceQuery#executionIdIn an exception will be thrown

related to CAM-1391