JSONLoader: Added check for metadata object. Fixes #4511.
Updated builds.