magit-log-goto-same-commit: Check section value

If I place the point on a blank line in the status buffer and then pull up the log, the point ends up at the end of the log buffer. This PR fixes the issue (though I'm not sure it's the appropriate way to fix it).