Fix dereferencing end iterator in SimplifyCFG. Patch by Ye Mei.