Only test the catalog if one exists.

If manifests/site.pp does not exist, the pre-commit hook would always fail. This is always the case when developing puppet modules, so there should be no error if there is no catalog to compile.