Allows for custom package driven publish targets to be rendered correctly without error

Ran into issues and had to add this $pkg check to render my custom composer target types.