previously, if a user clicked the share button in the deck view and then quickly navigated away from the page, it would raise an error because we would try to set the text on an element that was no longer in the DOM
this PR checks to see if the share text element exists before resetting its value
previously, if a user clicked the share button in the deck view and then quickly navigated away from the page, it would raise an error because we would try to set the text on an element that was no longer in the DOM
this PR checks to see if the share text element exists before resetting its value