Fix crash in /checkmergestatus operation

This fixes a regression introduced by

  1a9e4bf5 "Remove dbutils.Branch.{head,tail,commits} attributes"

which forgot to change this one use of Branch.head to use getHead().