Catch YAML::SyntaxError, not just SyntaxError.

In new versions of Psych, YAML::SyntaxError (which is
Psych::SyntaxError) is no longer a subclass of ::SyntaxError.