Fixes issue with recursive embedded document errors
Merge pull request #557 from SpotOnInc/recursive_embedded_errors_fix

Fixes issue with recursive embedded document errors