Merge "Add a bounds check when getting indexed items in dexlayout."