fixes #4349 Script error in Site Search Indices tab IE9

Fixed the issue and pushed the code for review, please check it.