replace erratic has_post_thumbnail() with custom function
allow parsing of the_content more than once, reverts ee8e6aee35cd70d728255a7c7b172f5aa39b42db