PackageFooterEmitter: fix null exception from getReturnTypeNode() on getter function node

Uses same approach for getters as regular functions to first check that the return type string isn't empty or void

Also, passes to formatQualifiedName() for consistency
4 files changed