handle legacy documents without commit_date