Fix: Catch exceptions thrown in sanitizeValue()