Problem/Motivation
Currently, if a JSON object is posted with just the type and title set, it fails if comment module is turned on because comment is looking for $node->uid. It should be possible to post without explicitly stating who you are, since we already know that from your user.
Proposed resolution
Check whether the entity has a uid property, and if it does and it is not set, populate it with the requesting user's uid.