Fixes issue where if we call isElementPresent and there are no page titles defined it will throw an NullPointException