Bug 898621 - Convert ToClampedIndex to take a Handle; r=sfink

--HG--
extra : rebase_source : e35c48ad93c609fdb2e670f34eda718902c5b5ed