filter out heartbeat request for -pnpres channel

also filter out empty keys for set state/metadata dictionary