Fix a race condition in the import/export round-trip clojure tests

This scenario occurred if command processing for facts is slow. A result
with the hard coded certname would be returned with no fact values or
environment. This commit fixes the code to only return results when
facts are found.
Merge pull request #961 from senior/maint/stable/import-export-test-race-condition-fix

Fix a race condition in the import/export round-trip clojure tests