I am fairly sure it's being done in reverselsit proc()
It returns empty list if one it gets is not good. 
can't have too much nullchecks, but I think you should leave reverselist there, just place your check before it