[res] Fix the cookie index in OpenNonAsset()

Previous change incorrectly set the output cookie index,
forgetting to account for the -1 offset

Bug: 312057285
Test: manual
Change-Id: Ib4ce95a3084f7faf83ac4875184f331407a1bd50
1 file changed