#422 REST API: When there is no metadata, simply unset it or otherwise the Serializer will serialize it as [] instead of the expected {}