Failure to do this will result in a crash

I'm too lazy to fix it in the code right now but it essentially walks off
the end of a list as it never finds a match and just derefs a null ptr.