Fix resource etag - has to be the same like when fetching item.

In datalayer, the cursor has to strip empty lists and subdocuments, which
are inserted by mongoengine.