Add Puppet::Error rescue for spec tests

specifically chose the mariadb provider, since it inherits from the the mysql provider, and can as such be seen as a super-set.