Don't serialize if None.