Correctly handle missing selection in Firefox 1.5 and 2.0
(#3)