[core-reducer] Try to find the stack even if sp overflowed

This patch gives us a chance to get the stack if a program crashed due to infinite recursion.