Fix Mongoid4 error

I'm not entirely sure why, but the objects passed through here on Mongoid4 are not always relations, and so do not always have a relation_metadata.