Ensure that $ensure_sent is defined.