Fixes PHP Fatal error:  Call to a member function getLocalized() on a non-object
I still don't understand why suddenly this error would appear (and only on php 5.4?)