Changed the append to form check due to a bug where the form might get added to all the_content calls on a page.