Update BaseControl.java

Added additional catch to the exists() method to handle NoSuchElementException