fix recreate_versions! when version if proc returns false

When trying to recreate an specific version and that version had a proc
returning false, there was an error trying to store that object.
Merge pull request #1068 from arthurnn/master

fix recreate_versions! when version if proc returns false