Removing elements in importhandler is now possible.

This should resolve ticket #11481.