Enchant security and flexibility of the document get system
Fix bug that was causing repeating the flash_doument warnind even if it was not to be displayed