update batch context to handle null date ranges