Fixed Issue with Comparing agast the wrong chest, potentially causing crashes

Fixes CID 70466.