Test if node exists before using removeChild()

This might get rid of the following javascript error that i get in my log file sometimes :
"Uncaught NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?"