_yaml.pyx: Fix file index checks for synthetic nodes
File index for synthetic nodes is -1 instead of None since commit a5a16bee.
Fixes #1051 (closed).
File index for synthetic nodes is -1 instead of None since commit a5a16bee.
Fixes #1051 (closed).