That doctrine has only been held for 150 years?
Yep. While it was batted around and sometimes claimed by popes before that, it was only officially formalized during the First Vatican Council in 1870 and with the limitations that the Pope speaks Ex cathedra and is speaking on a matter of faith and morals only