When transaction fails to start _clear_log_records fails
In such case `log_records` is `None`.
issue