Fix EZP-21563: Fatal error in eZContentUpload if no node

http://jira.ez.no/browse/EZP-21563

Prevents a fatal error when ezjscore serializes an object that doesn't have a node yet.