fix for $parser->getTitle() returning null

Change-Id: Id32b7a20ad669a1bd8825796d30f765253d47dcf