928413 - fix query used to determine of bind has pending actions.
Merge pull request #514 from pulp/jortel-928413

928413 - fix query used to determine of bind has pending actions.