Check non-null return from item match

Ensures that saving an empty golang file will not crash the linter.