JC-1713: fixed invalid [/list] tag processing