Don't set Swift list properties to nil when adding them to a Realm

(cherry picked from commit 117451efad645a5cc6f1c90749c20352eb8e9576)