Adding a check for pending tranasctions to the yum module

Fixes #4649