fix #988

trivial crash caused due to unchecked iteration over an empty reclist