Discourse "Publish to Discourse" Breaking with Beaver Builder Plugin

Just letting you know that I did apply Beaver Builder’s recommended code fix from the pull request, and it fixed the problem. Can you all please apply this fix to the plugin?