Pcast: Fix debugging notices generated by calling file_rewrite_pluginfile_urls and format_text in the wrong order