Fixed fatal error when getPageTitle is called more than once