Corrected a bug in HTML output filter

(only relevant for the n-queens example)