Fix #1842 - Crash in ROP search