fixes #4270 IE9-Delete previous version of contentlet breaking

Fixed the issue and pushed the code for review, please check it.