Fix pageExists when passed invalid title

$title would end up null leading to broken output.

Change-Id: I349ec8aa15fa7e59ae198c2e4f92b3baa471ea23