Convert empty attachment sizes to empty object intead of array

WP-API issue #299
Merge pull request #300 from maxcutler/issue-299

Convert empty attachment sizes to empty object intead of array