fix clear-pending-ops script to handle created_at.nil?