Recovered the original functionality, simplified tag handling and removed the now unneeded deleteLastPositionableTag() function from Dialog.