datastore: don't set namespace if it's an empty value.
datastore: filtering should mutate the new copy, not itself.