Merge pull request #761 from ZER0/selection-gc/836930

Fix Bug 836930 - selection module may have early gc issues for system/event listeners r=@erikvold(cherry picked from commit df9c6ffbca48afa7e3b36cfddecba38534f3e062)