Guard against reading a possible undefined in server::canCheckoutWriter
Merge pull request #992 from willyaranda/master

Guard against accesing a property when isMasterDoc is undefined