shears: fix internal error

We need to look a little bit harder for the merge commits needing a label.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>