Fix typo in check-sylva-units-k8s-versions.py

Summary

This bug has been introduced by the following MR: !8559 (merged)

The bug occurs when some errors occur

Details