Thanks to Charlie Davis.
Fix subscriptions being deleted when clients subscribed to a topic beginning with a $ but that is not $SYS. Thanks to David Woodward.