Add Puppet::Error rescue for spec tests

I'm almost surprised that all that code will return the correct provider (mysql in this case) just because we negate this function (and thereby its confine)