Bug 864296 - Check for detached elements, r=mdas