correct setting htmltext parameters in arrays (closes #4220)