Fix bugs when save the document without change data.

Currently, ScriptableCollection.save method requests update the document
even though there is no changed data.
It makes no error on linux, but makes an error on mac.

This patch makes ScriptableCollection.save method requests only when
there is a changed data.