Avoid corrupting pid file when screen -list resturns extra lines

My screen -list command return one extra line like
"1 socket[...]/S-minecraft"
Because grep catch "minecraft", this line is kept and "1" is appended to the real pid !
Piping with "head -n 1" and it's done.