966069: only stack valid ents
added test
Merge pull request #267 from candlepin/ckozak/stacked_future

966069: only stack valid ents