fix for when directory "(inst|.)/staticdocs" does not exist.

When directory "(inst|.)staticdocs" is non-existent, `pkg_sd_path(package)` returns `NULL` and subsequently `file.exists` fails.