Update code based on discussion in pull request.

- Changed empty_node to have default ref count of 1
- Added in chceks for the getters in Node bindings in order to ensure that
it returns a safe and empty object if one does not exist in the c node.
- Wrapped some code in cue.c
- Changed the create node function to ensure that the node var passed in
is valid.