Don't call ensureIndexIsVisible with an out of bounds argument and fix a race in browser_dbg_variables-view-edit-getset-02.js (bug 1013941). r=vporof

--HG--
extra : rebase_source : bc7c1a5dc8088f13dd0089faf164f070297b803f