Don't fire click when closing an alert

We noticed that the "go back" popup that appears when using pagination always navigates back, even when you click the "X" to close.  Looks like the clickFn fires no matter where you click in the alert box, so I added a guard condition to not fire clickFn when you click on the "X".