Hi jrf,
Thanks for your reply. I don't know what changed exactly, but since one of the latest updates hooking a function to the_content(), even with a check on is_main_query() triggers that function in WordPress head. Still didn't figure out what it is.