Issue #3302800 by nod_, quietone, longwave: Core tests need to filter out deprecated themes when looping over all themes (cherry picked from commit d1860b9d)