Fix problem with pango measure string

If the height is 0 or MaxInt it means any height. This change fixes
the problem where we didn't deal with MaxInt properly, resulting
in a string width of 0 being returned.

Change-Id: I41880c9312e0b765bcc0f86e1cd8c151fba80100