Fixes an issue with removing elements without property observers from dom; close property observers only if any exist