Fixed test that check if mathjax script should be include in jinja themes.

`rejectattr` and `selectattr` return a generator so the `if` was always `True`. And we want to check if there's at least one post needing mathjax so we need to keep post that have the `is_mathjax` attribute, not rejecting them.