Catch an IllegalNumberFormat exception