Convert empty attachment sizes to empty object intead of array

WP-API issue #299