More graceful handling of number format exceptions