magit-log-oneline-re: fix for orphaned branches

Fixes #1556.