(maint) Fix file binary template

Prior to this commit, the file binary template was broken on Puppet
Enterprise. This commit fixes that by checking to make sure the catalog
was stored in PuppetDB. If it is not, the assertion will fail. Otherwise
it will pass.