If condition for schema
If condition for schema

I'm adding an if condition to check security keys only if the
swagger definition has a schema
Otherwise the test fails with 'schema not found' error.

ndlib/QA_tests,ndlib/QA_tests,ndlib/QA_tests