Unexpected output when adding `first` filter on nested graph

@amaster507 Raised a PR to fix this.
https://github.com/dgraph-io/dgraph/pull/6221