Protect against terminating on a mal-formed record