Merge "Fix overflow in NinePatchImpl." into mnc-dev