[1306] Resources going missing - Fix problem with the no-current script, and add the "refix" script to correct its damage.
[1306] Resources going missing - no_current script identifies latest revision better and fixes res.revision_id if it does not point to the latest.