It looks like something to do with the render layer manager. Do you have any render layers set up? Can you post the script editor code after just opening the file (not doing anything else)?