Fix static cycle check

Fix the function that retrieves the final ssa'd graphnode