Update MDLDocument with writable inUserLibrary property

Fix nil authentication failure callback bug