OO-1501: fix rs if the file has no extension in the list of wiki files, fix span not closed, fix math insert script