WIKI-193: fix bug js error on attachment list