Ignore nils when constructing plist

Since nil values don't have a plist representation, this commit ensures that they get ignored gracefully when present.