make sure that JS indices are rebuilt after AngularJS plugin added
(cherry picked from commit 60d8688)
r=mossienko
EA-55333
(cherry picked from commit 18fd2ee)
r=zolotov