Bug 894713 - Followup fix, don't call removeEventListener on targetElement if targetElement is null. Fixes spurious console errors while running tests. r=me