Guard against exploring nonexistent serialization

If the serialization being parsed for labels has no serializationObject,
don't bother trying to read the keys. `Object.keys` doesn't react well
to a null argument.