Fix theme() in JS plugins returning unresolved object instead of DEFAULT value (#20299)