Bug 824294 - Check for null (destroyed) element just before we call PlaybackEnded on it. r=doublec, a=akeybl