Fix multi-alert focus problems

If two or more alerts are presented at the same time,
previousActiveElement will refer to an element in
the previous alert, not in the page.

Add a tracking variable to ensure that previousActiveElement
always refers to an element on the page.