Each entry must be check when calling drupal_write_record

The previous code did an all or nothing check to try and
determine whether to call drupal_write_record with the third
parameter or not.  Each entry must be checked.

Re-arrange the cron processing code with this in mind.