Fixed problem with unpublishing nodes due to revisioning module https://drupal.org/node/751092#comment-7802375