Use correct message type for last published items

When sending last published PubSub/PEP items, set the message type
that was used for broadcasting those items originally.