ENYO-3661: allow to call closeDoc on a non-opened doc
Merge pull request #714 from enyojs/ENYO-3661

ENYO-3661: allow to call closeDoc on a non-opened doc