restrict attempts to read document properties for Shiny docs