Use Qt ts message id attribute if present for getid()

Make getcontext() use message id attribute if present. Otherwise different
units might have same id which in turn makes pootle loose another unit.