#660 Fixed issue which caused invalid text to be inserted into the wysiwyg if the Close button was clicked on the AV selection modal