Escape early from endpoint creation when there are none to create

Avoid doing validation and lsof calls when there are no endpoints to create
for a cartridge. Fix unit test exeuctions.