added option empty object fallbacks incase not defined

When you don't define a metadata block in your config you get a fatal error. Added a safeguard for metadata and plugins object literals