Added conditional to WP_JSON_Posts->prepare_author() to verify the $user object is set.
Merge pull request #54 from rachelbaker/issue-51

Added conditional to verify the $user object is set in prepare_author method.

Fixes #51