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
Merge branch 'stable'

* stable:
  Fix a race condition in the import/export round-trip clojure tests
(PDB-16) Fix terminus to always submit reports and include the status
(PDB-16) Added status to "store report" and report query results

Previously there was no way to distinguish between failed puppet runs
and successful puppet runs as we didn't store report status. This commit
adds support for report status to the "store report" command, v4 query
API and model.
(PDB-16) Include warning when environment doesn't exist in report

This throws a warning if users are suffering from bug PUP-2508.

Signed-off-by: Ken Barber <ken@bob.sh>
Merge pull request #960 from senior/ticket/master/pdb-16-report-status

(PDB-16) Added status to "store report" and report query results