Fix: improve robustness of $st->getParams()