Fix: Don't serialize null or undefined params