magit-log-goto-same-commit: bugfix

When the value of the `magit-previous-section' was nil, then this
function jumped to the first child of the `magit-root-section' whose
value was also nil: the `longer` section at the end of the buffer.

Close #1337.