Rescue Psych::SyntaxError in Ruby 2.0/JRuby.