Fix download condition
Make revision uid optional

(required for nodes that are saved for the first time)
Optional revision uid