Don't return 'True' for failing package installations.
Merge pull request #12752 from eliasp/states_pkg-failed_always_true

Don't return 'True' for failing package installations.