Do not fail on gears without a primary cartridge.
Merge pull request #2115 from rmillner/fix_primary

Merged by openshift-bot