Fix Bug: iteration on NoneType getSubLinks.py