Cannot get library's document: sketch gets stuck
I'm running the following code via the sketch dev tools:

```
  const libraries = require('sketch/dom').getLibraries();
  const library = libraries[0]; // this array is not empty! 

  console.log(library.getDocument());
```

It simply gets stuck and I have to restart sketch.

My goal is to update a sketch library from another sketch document that is consuming the library. I cannot have this result by using the reference, so I was trying to access the library document directly :D.

Why it gets stuck? Bonus point: it would be possible to update the library from another document?

Thx!