Changed loop header archive and buddypress call to take into account that buddypress may not be installed