EUCA-5301
fails if no cert keys are defined. Added additional check
Merge pull request #198 from eucalyptus/EUCA-5301

EUCA-5301