Persistent channels does not send messages in some cases

Fix and test for issue akka#15022