added simple try/catch in case an (unknown how to handle) HTML element was passed to handle_element()