Added a check to make sure a parent node exists in call remove() to avoid errors as seen in bug #1742.
Attach a file by drag & drop or click to upload