Query on Id field of nested documents fails