these ternary bits were added because there's at least one orphaned comment (no parent thread) in the loadtest db, and it was taking down the entire job.  while my instinct would be to make exceptions around invalid data and then specifically handle them in the bulk job, i don't want to change a high-traffic method like to_hash without really solid test coverage.