Solves Ticket #357
This script searches through all revisions with invalid security and sets it to the security of the first revision in which security is specified.