Fix issue in AbstractMessagingTemplate