Restore tab position for "Undo Close Tab" command correctly on Firefox 29 and newer versions (#676)