Update ChangesEventListener.java

error handling to prevent from exiting the loop