Clone embedded relation attributes only when embedded relation exists.

When building up a hash of embedded relations attributes, don't map over the assumed embedded relation array; make sure it exists and is an array before taking further steps!