ANG-12114: fix index of pages update rountine in VerticalDelegate.js