Update Hook.java

Added getter for wasHandled field.