check that test_config is not None

Change-Id: Ie8a479bead9169db5ce4f84a731719565e9e4e95
Reviewed-on: http://review.couchbase.org/37934
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: buildbot <build@couchbase.com>