dokx-browse: check for missing doc tree

Print an error rather than going to a 404 page