stack: don't compute anything if the current topic is empty
There is no need to compute the revisions in the stack if there cannot be a stack.
Running this in mozilla-try reduces the time of hg stack
from minutes
(hours? didn't let it finish) to about a second, which is mostly due to
loading phase roots AFAIKT.