Updating the script to work correctly with files that do not have layer comps