Fix for issue 5153

Fixes TechTree error where if a building had a buildLimit > 0, it was
seen as satisfying the prerequisite of any building for which it was a
prerequisite.