Fix PreviewTaskTests

The server response now includes more HTML classes:
icon icon-32px icon-edit enabled

Change-Id: I5a1cc787309a2bec4fbed663625b745f4ff9c89f
Fix PageTitleTests

Got an ArrayOutOfBoundsException when parsing "/wiki/Talk:India#".
When we encountered a hash at the end of the string we tried to
access text.split("#")[1]. Boom!

Change-Id: Ib80ab7e770e05510a7a4eb63341ee0de32f2792d
Merge "Fix PageTitleTests"