Fix #1848 - crash in dex parsing