do not set metadata for empty cy objects

fixes #569