Fix TypeError in report_collect with _collect_report_last_write.