Add NULL check for lpnFit in GetTextExtentExPointW.