Bugfix for not able to save if 'replacing existing folders' isnt checked

If 'replace existing folders' isn't checked, it crashes since int() cannot convert NoneType to an integer.