NoneType is also expected since head_commit will be null, not missing.