Example of failing case when two alerts are invoked
Remove modal messages from modal message list

* When multiple, non-nested modals are on a page, the modal ID will not
  point to the index of the corresponding modal message in the modal
  message list.