#4287 - Fix viewDraft ES filter, refs #4287

Edgar has sent us a patch that he attached to the corresponding Redmine ticket (https://projects.artefactual.com/issues/4287#change-30595). I'm opening this pull request for him as he couldn't make it at the moment.