(PUP-3701) Fix issue with empty exported resources expression

Resources in the catalog were being ignored and only found through the
indirector. This patch fixes that and makes the PuppetDB tests using
this feature pass.