avoid calling (cd ...) with `nil' as a directory name
When (hg-root) cannot determine the current Mercurial root, print an
error message instead of trying to evaluate (cd nil).
<table class="logEntry parity#parity#">
<tr>
<th class="age">#date|age# ago:</th>
<th class="firstline">#desc|strip|firstline|escape#</th>
</tr>
<tr>
<th class="revision">changeset #rev#:</th>
<td class="node"><a href="?cs=#node|short#">#node|short#</a></td>
</tr>
#parent%changelogparent#
#child%changelogchild#
#changelogtag#
<tr>
<th class="author">author:</th>
<td class="author">#author|obfuscate#</td>
</tr>
<tr>
<th class="date">date:</th>
<td class="date">#date|date#</td>
</tr>
<tr>
<th class="files"><a href="?mf=#manifest|short#;path=/">files</a>:</th>
<td class="files">#files#</td>
</tr>
</table>