Fixed documentation saving

- Needed to cast empty array to object to ensure that the structure can be saved
  on completion ($http.put() will not use an array for data)