Fix query engine crash due to corruption caused by calling GetUint() instead of GetUint64()

Change-Id: Icf8ed9763028d009ea37cb3fb0585300fa96bdc6
Merge "Fix query engine crash due to corruption caused by calling GetUint() instead of GetUint64()"