fix NullPointerException on files with no syntax nodes