guardian/frontend — pull request #3471 by janua (2014-03-11 11:57:21+00:00)
Title: Fix concurrent publish

There is a state between the frontend of facia-tool and the backend of facia-tool where editors have two versions of the tool open, and hitting publish at the same time, which subsequently empties the collection as we are publishing on an empty draft and using `getOrElse(Nil)`.

We always have to be careful around draft as sometimes it does not exist, and this is from the effort to handle empty drafts. Now we only publish drafts that are `isDefined`.