Check package presence before yum erase. fixes PUP-1295

This PR ensures yum provider will check a package is installed (with rpm -q) before it tries to erase it.
It should remove noise from packages resources ensured absent on RedHat systems.