Changes Application#recorded_examples to better respect SafeYAML

It's possible for SafeYAML to be defined, but without having done the method patching in default YAML. This change tightens the check for SafeYAML to ensure that the correct api is used.