Add workaround for firefox if sel.nativeSelection is null