`prepare_post()` can return `WP_Error`

Catch before we try to use it as an array
Merge pull request #528 from WP-API/fix-prepare-post

`prepare_post()` can return `WP_Error`
Merge branch 'master' of https://github.com/royboy789/WP-API