Fix for Text.getMeasuredWidth() for instances with invalid font values.

Signed-off-by: Grant Skinner <info@gskinner.com>