Fixed problem with stripping nested objects from subdocuments