Fixed 2 bugs

-Document would not unlock after clicking "Save"-link multiple times:
remove "save"-link after clicking
-Document would not unlock if trying to save without changes: fixed