Update TemperatureFilter.java

Added catch block.